package com.glodon.zhuanli.datatype.entity;

import com.glodon.framework.jpa.entity.JPABaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name="db_datatype")
@Setter
@Getter
public class DbDataType extends JPABaseEntity {

    /**
     * 数据库
     */
    @Column(name="db_type")
    private String dbType ;

    /**
     * 字段类型
     */
    @Column(name="type")
    private String type ;

    /**
     * 默认长度
     */
    @Column
    private Integer length ;

    /**
     * 默认精度
     */
    @Column(name = "decimal_length")
    private Integer decimalLength   ;

    /**
     * 应用数据类型的id
     */
    @Column(name = "app_datatype_id")
    private String appDataTypeId ;

    /**
     * 备注
     */
    @Column(name="remark" , length = 2000)
    private String remark ;




}
